package com.example.aop_.test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class test1 {
    @RequestMapping("/test1")
    public int test1(){
       return 10/0;
    }
    @RequestMapping("/test2")
    public String test2(){
        String s=null;
        return s;
    }
    @RequestMapping("/test3")
    public int test3() {
        int[] arr = new int[3];
        return arr[3];
    }
    @RequestMapping("/test4")
    public String test4(){
        return "sss";
    }
}
